import base64

if __name__ == '__main__':
    encoded_str = "bWFnZWR1LmNvbQ=="
    decoded_bytes = base64.b64decode(encoded_str)
    decoded_str = decoded_bytes.decode('utf-8')
    print("解码结果:", decoded_str)
    original_str = "[magedu.com](http://magedu.com)"
    encoded_bytes = base64.b64encode(original_str.encode('utf-8'))
    encoded_str = encoded_bytes.decode('utf-8')
    print("编码结果:", encoded_str)

